﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Library
{
    public class BizBaoCao
    {
        private int idsp;
        public int ID_SP
        {
            get { return idsp; }
            set { idsp = value; }
        }

        private string tensp;
        public string TenSP
        {
            get { return tensp; }
            set { tensp = value; }
        }

        private int slt;
        public int SoLuongDaBan
        {
            get { return slt; }
            set { slt = value; }
        }

        private int thanhtien;
        public int ThanhTien
        {
            get { return thanhtien; }
            set { thanhtien = value; }
        }

        private DateTime ngay;
        public DateTime Ngay
        {
            get { return ngay; }
            set { ngay = value; }
        }

        

        public BizBaoCao(int _idsp, string _tensp, int _soluongdaban, int _thanhtien, DateTime _ngay)
        {
            ID_SP = _idsp;
            TenSP = _tensp;
            SoLuongDaBan = _soluongdaban;
            ThanhTien = _thanhtien;
            Ngay = _ngay;
        }

        public BizBaoCao()
        {        }

        public static List<BizBaoCao> GetList(DateTime from, DateTime to)
        {
            return DalThongKeBaoCao.GetListBaoCao(from, to);
        }
    }
}
